package com.vict.bean.pay.ao;

import com.alibaba.fastjson.annotation.JSONField;
import com.vict.framework.fastjsonserializer.DecimalDeserializer;
import com.vict.framework.fastjsonserializer.DecimalSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class CaseSouYinAO {

    @ApiModelProperty(value="金额")
    @JSONField(serializeUsing = DecimalSerializer.class, deserializeUsing = DecimalDeserializer.class)
    private BigDecimal money;

    public void check() {
        if(money == null){
            throw new RuntimeException("请输入金额");
        }
    }
}
